<div class="page-body">
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">买书订单列表</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <div class="table-toolbar">
                        <form method="get" action="{:U('index')}" class="form-inline" role="form">
                            <div class="form-group">
                                <span class="input-icon" style="width: 100px;">
                                    <select class="form-control input-sm" name="is_confirm">
                                        <option value="-1"  <eq name="Think.get.is_confirm" value="-1">selected</eq>>全部</option>
                                        <option value="0"  <eq name="Think.get.is_confirm" value="0">selected</eq>>未确认</option>
                                        <option value="1"  <eq name="Think.get.is_confirm" value="1">selected</eq>>已确认</option>
                                    </select>
                                </span>
                                <span class="input-icon" style="width: 100px;">
                                    <select class="form-control input-sm" name="type">
                                        <option value="-1"  <eq name="Think.get.type" value="-1">selected</eq>>全部</option>
                                        <option value="0"  <eq name="Think.get.type" value="0">selected</eq>>直接回收</option>
                                        <option value="1"  <eq name="Think.get.type" value="1">selected</eq>>破损回收</option>
                                    </select>
                                </span>
                                <span class="input-icon" style="width: 400px;">
                                    <input type="text" value="{$Think.get.time_start}" name="time_start" class="form-control input-sm" placeholder="开始时间">
                                    &nbsp;-&nbsp;
                                    <input type="text" value="{$Think.get.time_end}" name="time_end" class="form-control input-sm" placeholder="结束时间">
                                </span>
                                <button type="submit" class="btn btn-info">搜索</button>
                                <button type="submit" class="btn btn-info" name="excel" value="1">导出当前</button>
                            </div>
                        </form>
                    </div>

                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>配送员</th>
                            <th>书名</th>
                            <th>数量</th>
                            <th>回收种类</th>
                            <th>收钱金钱</th>
                            <th>回收时间</th>
                            <th>是否确认</th>
                            <th></th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="data" id="vo">
                            <tr>
                                <td>{$vo.name}</td>
                                <td>
                                    {$vo.sm}<br>
                                    新华码：{$vo.spbs}<br>
                                    条形码：{$vo.tm}<br>
                                    价格：{$vo.dj}<br>
                                    出版社：{$vo.press}<br>
                                </td>
                                <td>{$vo.num}</td>
                                <td>
                                    <eq name="vo.type" value="0">
                                        直接回收
                                        <else/>
                                        破损回收
                                    </eq>
                                </td>
                                <td>{$vo.money}</td>
                                <td>{$vo.addtime|date="Y-m-d",###}</td>
                                <td>
                                    <eq name="vo.is_confirm" value="0">
                                        <a class="btn btn-warning btn-xs action-btn" href="javascript:;"
                                           data-href="{:U('confirm',array('recycle_id'=>$vo['recycle_id']))}">确认回收</a>
                                    <else/>
                                        <span class="label label-success">已确认</span>
                                    </eq>
                                </td>

                            </tr>
                        </volist>
                        </tbody>
                    </table>
                    {$page}
                    <form class="form-inline" method="post">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">设置页码</div>
                                <input class="form-control" type="text" placeholder="" name="p" value="{$Think.get.p}" style="width: 60px;">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("[name='time_start']").datetimepicker({
            defaultDate: "{$data.time_start}",
            sideBySide: true,
            format: "YYYY-MM-DD HH:mm:ss",
        });
        $("[name='time_end']").datetimepicker({
            defaultDate: "{$data.time_end}",
            sideBySide: true,
            format: "YYYY-MM-DD HH:mm:ss",
        });
    });
</script>